package cn.iocoder.mall.product.service.impl;

import cn.iocoder.mall.product.dao.CommoditySkuMapper;
import cn.iocoder.mall.product.entities.CommoditySku;
import cn.iocoder.mall.product.service.ICommoditySkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 商品SKU
 * @Author: jeecg-boot
 * @Date:   2019-11-07
 * @Version: V1.0
 */
@Service
@Slf4j
public class CommoditySkuServiceImpl extends ServiceImpl<CommoditySkuMapper, CommoditySku> implements ICommoditySkuService {
	
	@Resource
	private CommoditySkuMapper commoditySkuMapper;
	
	@Override
	public List<CommoditySku> selectByMainId(Long mainId) {
		return commoditySkuMapper.selectByMainId(mainId);
	}
}
